package com.powerunion.datacollection.dao;

import java.util.List;

import net.sf.json.JSONArray;

import com.powerunion.datacollection.model.Target;
import com.powerunion.datacollection.model.query.TargetQuery;

public interface TargetDao {
	public String save(Target target)throws DaoException;
		
	public boolean delete(String[] codes) throws DaoException;
	
	public Target getBykey(String id);
	
	public String getTargets(TargetQuery query,int start,int limit);
	
	public List findTargets(String categoryId) throws DaoException;
	public List findTargetDetails(String targetId) throws DaoException;
	public JSONArray getTargetsTree(String paraSeq) throws Exception;
	public JSONArray getSelectTargetsTree(String paraSeq) throws Exception;
	public JSONArray getTargetFieldTree(String paraSeq) throws Exception;

}
